import React, { useEffect } from 'react'
import ReactDOM from 'react-dom'
import {
  SchemaForm,
  SchemaMarkupField as Field,
  FormButtonGroup,
  createFormActions,
  Submit,
  Reset
} from '@formily/antd' // 或者 @formily/next
import { Input } from 'antd'
import 'antd/dist/antd.css'
import "@/icons/";
import SvgIcon from '@/components/SvgIcon'
import svg from '@/svg/room.svg'
import style from './index.less'
import {history, Link} from 'umi'
console.log(svg)
const App = () => {
  // useEffect(() => {
  //   actions.setFieldState('name', state => {
  //     state.visible = true
  //   })
  // }, [])
  console.log(history.location.query.text)
  const text = history.location.query.text || 'nothing'
  return (
    <div>
      home
      {text}
      <Link to="/list">返回</Link>
    </div>
  )
}
export default App;
